import newRequest from '@/utils/newRequest'
import { mergeParams } from '@/utils'

// 分页评估方式-查询
export function getEvaluationElement(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhEvaluationElement/doQueryPage',
    method: 'post',
    data
  })
}

// 新增
export function addEvaluationElement(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhEvaluationElement/doSave',
    method: 'post',
    data
  })
}

// 修改
export function updateEvaluationElement(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhEvaluationElement/doUpdate',
    method: 'put',
    data
  })
}

// 删除
export function delEvaluationElement(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhEvaluationElement/doDelete',
    method: 'delete',
    data
  })
}
